﻿@using CodeGenerator.Core
@using System.Text
@{
    int count = 0;
    string primaryKey = "";
    TableInfo table = Model.TableInfo;
}
using System;
namespace Shengyi.Model.Domain
{    
    ///<summary>
    ///@(!string.IsNullOrEmpty(table.Comments)?table.Comments : table.Name)
    ///</summary>
    [Serializable]
    public class @(CodeGenerator.Common.Utils.Pascal(Model.Name))Model : BaseEntity
    {
    @foreach (ColumnInfo column in table.ColumnList)
    {
        if (column.Name != "Id" && column.Name != "IsDelete" && column.Name != "CreateTime" && column.Name != "UpdateTime" && column.Name != "CreateUserId" && column.Name != "UpdateUserId")
        {
            if (!string.IsNullOrEmpty(column.Comments))
            {
            @:/// <summary>
            @:/// @column.Comments
            @:/// </summary>
            }
            @:public virtual @column.NetType.Alias@(column.NetType.Alias!="string"?column.AllowDBNull=="是"?"?":"":"") @column.Name { get; set; }
            @:
        }
    }
    }
}